Skip to content

feat(create): reuse tunnel presets in create flow#15

Open
ablause wants to merge 1 commit into
IvanArjona:masterfrom
ablause:feature/tunnel-presets
Open

feat(create): reuse tunnel presets in create flow#15
ablause wants to merge 1 commit into
IvanArjona:masterfrom
ablause:feature/tunnel-presets

Conversation

@ablause

@ablause ablause commented May 2, 2026

Copy link
Copy Markdown

Adds a QuickPick at the start of Create Tunnel that lists previously used (port, hostname) pairs. Picking one creates the tunnel directly with the saved values; picking "New tunnel..." keeps the existing input flow.

Each preset row has an inline trash button to remove it. After a tunnel starts successfully, its (port, hostname) is upserted into the list (deduped, most recent first), so the list builds up as you use the command.

Presets live in globalState, so they are shared across workspaces. The getter coerces any legacy hostname: undefined to null to keep the dedup key stable.

Add a QuickPick step at the start of "Create Tunnel" listing previously
used port + hostname pairs, with inline trash buttons to remove an
entry. Picking a preset goes straight to tunnel creation using the
saved values, with up-front collision checks that abort if the port or
hostname is already used by a running tunnel. Picking "New tunnel..."
keeps the original prompt-driven flow. Successful tunnels are silently
upserted as presets in globalState (deduped by port + hostname),
shared across workspaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant